package com.basic;


import com.frame.struts.BaseBean;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.frame.struts.ActionContext;
import com.utils.*;
import java.util.Date;


/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class WorkerProfileForm extends BaseBean {
    public WorkerProfileForm() {
    }
	WorkerProfileEntity wpe = new WorkerProfileEntity();
	public String addWorkerProfile(){
		HttpServletRequest request = ActionContext.getActionContext().
			getRequest();
		HttpServletResponse response = ActionContext.getActionContext().
			getResponse();
		BasicFactory factory = new BasicFactory();
		String qyid = (String) request.getSession().getAttribute("session_qyid");
		wpe.setQyid(qyid);
		wpe.setOptdate(new Date());
		wpe.setOptrid(CommUtil.getUserId(request));
		try{
			if(factory.addWorkerProfile(wpe)){
				response.sendRedirect("/gudong/modifyWorksalary.jsp");
			}else
			{
				response.sendRedirect("/basic/failed.jsp");
			}
		}
		catch (Exception e) {

		}

		return null;
	}
	public String modifyWorkerProfile(){
		HttpServletRequest request = ActionContext.getActionContext().
			getRequest();
		HttpServletResponse response = ActionContext.getActionContext().
			getResponse();
		BasicFactory factory = new BasicFactory();
		String qyid = (String) request.getSession().getAttribute("session_qyid");
		wpe.setQyid(qyid);
		wpe.setOptdate(new Date());
		wpe.setOptrid(CommUtil.getUserId(request));
		factory.deleteWorkerProfile(qyid);
		try{
			if(factory.addWorkerProfile(wpe)){
				    response.sendRedirect("/gudong/modifyWorksalary.jsp");
			}else
			{
			response.sendRedirect("/basic/failed.jsp");
			}
			}
			catch (Exception e) {

			}

				return null;
	}

	/**
	 * @return wpe.getReturns the cjzc.
	 */
	public double getCjzc() {
		return wpe.getCjzc();
	}
	/**
	 * @param cjzc The cjzc to set.
	 */
	public void setCjzc(double cjzc) {
		wpe.setCjzc(cjzc);
	}
	/**
	 * @return wpe.getReturns the gjzc.
	 */
	public double getGjzc() {
		return wpe.getGjzc();
	}
	/**
	 * @param gjzc The gjzc to set.
	 */
	public void setGjzc(double gjzc) {
		wpe.setGjzc(gjzc);
	}
	/**
	 * @return wpe.getReturns the zjzc.
	 */
	public double getZjzc() {
		return wpe.getZjzc();
	}
	/**
	 * @param zjzc The zjzc to set.
	 */
	public void setZjzc(double zjzc) {
		wpe.setZjzc(zjzc);
	}

	/**
	 * @return wpe.getReturns the bkys.
	 */
	public double getBkys() {
		return wpe.getBkys();
	}
	/**
	 * @param bkys The bkys to set.
	 */
	public void setBkys(double bkys) {
		wpe.setBkys(bkys);
	}
	/**
	 * @return wpe.getReturns the bkysbl.
	 */
	public double getBkysbl() {
		return wpe.getBkysbl();
	}
	/**
	 * @param bkysbl The bkysbl to set.
	 */
	public void setBkysbl(double bkysbl) {
		wpe.setBkysbl(bkysbl);
	}
	/**
	 * @return wpe.getReturns the dz.
	 */
	public double getDz() {
		return wpe.getDz();
	}
	/**
	 * @param dz The dz to set.
	 */
	public void setDz(double dz) {
		wpe.setDz(dz);
	}
	/**
	 * @return wpe.getReturns the dzbl.
	 */
	public double getDzbl() {
		return wpe.getDzbl();
	}
	/**
	 * @param dzbl The dzbl to set.
	 */
	public void setDzbl(double dzbl) {
		wpe.setDzbl(dzbl);
	}
	/**
	 * @return wpe.getReturns the gzyx.
	 */
	public double getGzyx() {
		return wpe.getGzyx();
	}
	/**
	 * @param gzyx The gzyx to set.
	 */
	public void setGzyx(double gzyx) {
		wpe.setGzyx(gzyx);
	}
	/**
	 * @return wpe.getReturns the gzyxbl.
	 */
	public double getGzyxbl() {
		return wpe.getGzyxbl();
	}
	/**
	 * @param gzyxbl The gzyxbl to set.
	 */
	public void setGzyxbl(double gzyxbl) {
		wpe.setGzyxbl(gzyxbl);
	}
	/**
	 * @return wpe.getReturns the optdate.
	 */
	public Date getOptdate() {
		return wpe.getOptdate();
	}
	/**
	 * @param optdate The optdate to set.
	 */
	public void setOptdate(Date optdate) {
		wpe.setOptdate(optdate);
	}
	/**
	 * @return wpe.getReturns the optrid.
	 */
	public String getOptrid() {
		return wpe.getOptrid();
	}
	/**
	 * @param optrid The optrid to set.
	 */
	public void setOptrid(String optrid) {
		wpe.setOptrid(optrid);
	}
	/**
	 * @return wpe.getReturns the qyid.
	 */
	public String getQyid() {
		return wpe.getQyid();
	}
	/**
	 * @param qyid The qyid to set.
	 */
	public void setQyid(String qyid) {
		wpe.setQyid(qyid);
	}
	/**
	 * @return wpe.getReturns the recstate.
	 */
	public String getRecstate() {
		return wpe.getRecstate();
	}
	/**
	 * @param recstate The recstate to set.
	 */
	public void setRecstate(String recstate) {
		wpe.setRecstate(recstate);
	}
	/**
	 * @return wpe.getReturns the remark.
	 */
	public String getRemark() {
		return wpe.getRemark();
	}
	/**
	 * @param remark The remark to set.
	 */
	public void setRemark(String remark) {
		wpe.setRemark(remark);
	}
	/**
	 * @return wpe.getReturns the zz.
	 */
	public double getZz() {
		return wpe.getZz();
	}
	/**
	 * @param zz The zz to set.
	 */
	public void setZz(double zz) {
		wpe.setZz(zz);
	}
	/**
	 * @return wpe.getReturns the zzbl.
	 */
	public double getZzbl() {
		return wpe.getZzbl();
	}
	/**
	 * @param zzbl The zzbl to set.
	 */
	public void setZzbl(double zzbl) {
		wpe.setZzbl(zzbl);
	}

	//***********************//
	/**
	 * @return wpe.getReturns the dsrhj1.
	 */
	public double getDsrhj1() {
		return wpe.getDsrhj1();
	}
	/**
	 * @param dsrhj1 The dsrhj1 to set.
	 */
	public void setDsrhj1(double dsrhj1) {
		wpe.setDsrhj1(dsrhj1);
	}
	/**
	 * @return wpe.getReturns the dsrhj2.
	 */
	public double getDsrhj2() {
		return wpe.getDsrhj2();
	}
	/**
	 * @param dsrhj2 The dsrhj2 to set.
	 */
	public void setDsrhj2(double dsrhj2) {
		wpe.setDsrhj2(dsrhj2);
	}
	/**
	 * @return wpe.getReturns the dsrhj3.
	 */
	public double getDsrhj3() {
		return wpe.getDsrhj3();
	}
	/**
	 * @param dsrhj3 The dsrhj3 to set.
	 */
	public void setDsrhj3(double dsrhj3) {
		wpe.setDsrhj3(dsrhj3);
	}
	/**
	 * @return wpe.getReturns the dsrrs1.
	 */
	public double getDsrrs1() {
		return wpe.getDsrrs1();
	}
	/**
	 * @param dsrrs1 The dsrrs1 to set.
	 */
	public void setDsrrs1(double dsrrs1) {
		wpe.setDsrrs1(dsrrs1);
	}
	/**
	 * @return wpe.getReturns the dsrrs2.
	 */
	public double getDsrrs2() {
		return wpe.getDsrrs2();
	}
	/**
	 * @param dsrrs2 The dsrrs2 to set.
	 */
	public void setDsrrs2(double dsrrs2) {
		wpe.setDsrrs2(dsrrs2);
	}
	/**
	 * @return wpe.getReturns the dsrrs3.
	 */
	public double getDsrrs3() {
		return wpe.getDsrrs3();
	}
	/**
	 * @param dsrrs3 The dsrrs3 to set.
	 */
	public void setDsrrs3(double dsrrs3) {
		wpe.setDsrrs3(dsrrs3);
	}
	/**
	 * @return wpe.getReturns the gsrhj1.
	 */
	public double getGsrhj1() {
		return wpe.getGsrhj1();
	}
	/**
	 * @param gsrhj1 The gsrhj1 to set.
	 */
	public void setGsrhj1(double gsrhj1) {
		wpe.setGsrhj1(gsrhj1);
	}
	/**
	 * @return wpe.getReturns the gsrhj2.
	 */
	public double getGsrhj2() {
		return wpe.getGsrhj2();
	}
	/**
	 * @param gsrhj2 The gsrhj2 to set.
	 */
	public void setGsrhj2(double gsrhj2) {
		wpe.setGsrhj2(gsrhj2);
	}
	/**
	 * @return wpe.getReturns the gsrhj3.
	 */
	public double getGsrhj3() {
		return wpe.getGsrhj3();
	}
	/**
	 * @param gsrhj3 The gsrhj3 to set.
	 */
	public void setGsrhj3(double gsrhj3) {
		wpe.setGsrhj3(gsrhj3);
	}
	/**
	 * @return wpe.getReturns the gsrrs1.
	 */
	public double getGsrrs1() {
		return wpe.getGsrrs1();
	}
	/**
	 * @param gsrrs1 The gsrrs1 to set.
	 */
	public void setGsrrs1(double gsrrs1) {
		wpe.setGsrrs1(gsrrs1);
	}
	/**
	 * @return wpe.getReturns the gsrrs2.
	 */
	public double getGsrrs2() {
		return wpe.getGsrrs2();
	}
	/**
	 * @param gsrrs2 The gsrrs2 to set.
	 */
	public void setGsrrs2(double gsrrs2) {
		wpe.setGsrrs2(gsrrs2);
	}
	/**
	 * @return wpe.getReturns the gsrrs3.
	 */
	public double getGsrrs3() {
		return wpe.getGsrrs3();
	}
	/**
	 * @param gsrrs3 The gsrrs3 to set.
	 */
	public void setGsrrs3(double gsrrs3) {
		wpe.setGsrrs3(gsrrs3);
	}
	/**
	 * @return wpe.getReturns the mon1.
	 */
	public String getMon1() {
		return wpe.getMon1();
	}
	/**
	 * @param mon1 The mon1 to set.
	 */
	public void setMon1(String mon1) {
		wpe.setMon1(mon1);
	}
	/**
	 * @return wpe.getReturns the mon2.
	 */
	public String getMon2() {
		return wpe.getMon2();
	}
	/**
	 * @param mon2 The mon2 to set.
	 */
	public void setMon2(String mon2) {
		wpe.setMon2(mon2);
	}
	/**
	 * @return wpe.getReturns the mon3.
	 */
	public String getMon3() {
		return wpe.getMon3();
	}
	/**
	 * @param mon3 The mon3 to set.
	 */
	public void setMon3(String mon3) {
		wpe.setMon3(mon3);
	}
	/**
	 * @return wpe.getReturns the year1.
	 */
	public String getYear1() {
		return wpe.getYear1();
	}
	/**
	 * @param year1 The year1 to set.
	 */
	public void setYear1(String year1) {
		wpe.setYear1(year1);
	}
	/**
	 * @return wpe.getReturns the year2.
	 */
	public String getYear2() {
		return wpe.getYear2();
	}
	/**
	 * @param year2 The year2 to set.
	 */
	public void setYear2(String year2) {
		wpe.setYear2(year2);
	}
	/**
	 * @return wpe.getReturns the year3.
	 */
	public String getYear3() {
		return wpe.getYear3();
	}
	/**
	 * @param year3 The year3 to set.
	 */
	public void setYear3(String year3) {
		wpe.setYear3(year3);
	}
	/**
	 * @return wpe.getReturns the zsrhj1.
	 */
	public double getZsrhj1() {
		return wpe.getZsrhj1();
	}
	/**
	 * @param zsrhj1 The zsrhj1 to set.
	 */
	public void setZsrhj1(double zsrhj1) {
		wpe.setZsrhj1(zsrhj1);
	}
	/**
	 * @return wpe.getReturns the zsrhj2.
	 */
	public double getZsrhj2() {
		return wpe.getZsrhj2();
	}
	/**
	 * @param zsrhj2 The zsrhj2 to set.
	 */
	public void setZsrhj2(double zsrhj2) {
		wpe.setZsrhj2(zsrhj2);
	}
	/**
	 * @return wpe.getReturns the zsrhj3.
	 */
	public double getZsrhj3() {
		return wpe.getZsrhj3();
	}
	/**
	 * @param zsrhj3 The zsrhj3 to set.
	 */
	public void setZsrhj3(double zsrhj3) {
		wpe.setZsrhj3(zsrhj3);
	}
	/**
	 * @return wpe.getReturns the zsrrs1.
	 */
	public double getZsrrs1() {
		return wpe.getZsrrs1();
	}
	/**
	 * @param zsrrs1 The zsrrs1 to set.
	 */
	public void setZsrrs1(double zsrrs1) {
		wpe.setZsrrs1(zsrrs1);
	}
	/**
	 * @return wpe.getReturns the zsrrs2.
	 */
	public double getZsrrs2() {
		return wpe.getZsrrs2();
	}
	/**
	 * @param zsrrs2 The zsrrs2 to set.
	 */
	public void setZsrrs2(double zsrrs2) {
		wpe.setZsrrs2(zsrrs2);
	}
	/**
	 * @return wpe.getReturns the zsrrs3.
	 */
	public double getZsrrs3() {
		return wpe.getZsrrs3();
	}
	/**
	 * @param zsrrs3 The zsrrs3 to set.
	 */
	public void setZsrrs3(double zsrrs3) {
		wpe.setZsrrs3(zsrrs3);
	}

}